const router = require("express").Router();
const { getMsgs, addMsgs } = require("./handler");
const multer = require("multer");
const upload = multer();

router.get("/messages", getMsgs);

router.post("/AddMessage", upload.single("file"), addMsgs);

module.exports = router;
